package com.library.utils;

import java.util.UUID;

/**
 * @author : 凉小天
 * @date : 2021/6/30 11:52
 */
public class UUIDUtils {

    /**
     * 获取UUID
     */

    public static String getUUID(){
        String[] strings = UUID.randomUUID().toString().split("-");
        StringBuilder builder  = new StringBuilder();
        for (String string : strings) {
            builder.append(string);
        }
        return builder.toString();
    }
}
